import request from '@/api/request.js'

// 校验旧密码
export const checkOldPassword = (data) => {
    return request({
        url: `/personal/v_checkPwd?origPwd=${data.origPwd}&user_id=${data.user_id}`,
        method: 'POST'
    })
}

// 提交新密码
export const submitNewPassword = (data) => {
    return request({
        url: `/personal/o_profile?newPwd=${data.newPwd}&user_id=${data.user_id}`,
        method: 'POST'
    })
}
